package com.anyisn.anyflickr.modules.PhotosSlide
{
	import com.anyisn.anyflickr.shell.model.vo.PhotoListVO;
	import com.anyisn.puremvc.as3.multicore.utilities.pipes.component.PipeAwareModule;
	
	public class PhotosSlideModule extends PipeAwareModule
	{
		public static const NAME:String = 'PhotosSlideModule';
		public var plVO:PhotoListVO;
		public var delay:int;
		
		public function PhotosSlideModule(plVO:PhotoListVO, delay:int)
		{
			this.plVO = plVO;
			this.delay = delay;
			super(PhotosSlideModuleFacade.getInstance(moduleID));
			
			(facade as PhotosSlideModuleFacade).startup(this);
		}
		
		public function getID():String {
			return moduleID;
		}
		
		public function exportPhotosSlideWindow():void {
			facade.sendNotification(PhotosSlideModuleFacade.GET_PHOTOS_SLIDE_WINDOW);
		}
		
		private static function getNextID():String
		{
			return NAME + '/' + serial++;
		}
		
		private static var serial:Number = 0;
		private var moduleID:String = PhotosSlideModule.getNextID();
	}
}